package cc.wanforme.st.server.vo.base;

import java.io.Serializable;
import java.time.LocalDateTime;

import org.springframework.beans.BeanUtils;

import cc.wanforme.st.server.base.entity.User;

/**
 * <p>
 * 用户表（不实现评论和留言，但是保留）
 * </p>
 *
 * @author wanne
 * @since 2020-09-18
 */
public class UserVo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;
    /**昵称*/
    private String name;
    /**用户名*/
    private String username;
    /**类型, 01-博主, 02-访问用户*/
//    private String type;
    /**邮箱*/
//    private String email;
    /**状态*/
    private String status;
    private LocalDateTime createTime;
    
    public UserVo() {}
    
    public UserVo(User po) {
    	BeanUtils.copyProperties(po, this);
    }
    
	public Long getId() {
		return id;
	}

    public void setId(Long id) {
		this.id = id;
	}

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getStatus() {
		return status;
	}
    public void setStatus(String status) {
		this.status = status;
	}
    
    public LocalDateTime getCreateTime() {
		return createTime;
	}
    public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}
    
    @Override
    public String toString() {
        return "user{" +
        "id=" + id +
        ", name=" + name +
        ", username=" + username +
        ", status=" + status +
        ", createTime=" + createTime +
        "}";
    }
}
